/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package bgu.sonar.util;

/**
 *
 * @author bennyl
 */
public class Distances {

    public static double euclidian(double[] v1, double[] v2) {
        double sum = 0;
        for (int i = 0; i < v1.length; i++) {
            sum += Math.pow(v1[i] - v2[i], 2);
        }

        return Math.sqrt(sum);
    }
}
